/****** Object:  Stored Procedure [dbo].spCongTyUpdate Script Date: 6/12/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spCongTyUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spCongTyUpdate]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		21/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spCongTyUpdate]
(
	@MaCTy int,
	@TenCTy nvarchar(80),
	@DiaChi nvarchar(80),
	@SoDT nvarchar(15),
	@SoFax nvarchar(15),
	@MaSoThue nvarchar(15),
	@Email nvarchar(30),
	@Website nvarchar(35),
	@NguoiLienHe nvarchar(35),
	@Logo nvarchar(15),
	@GhiChu nvarchar(200)
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_CongTy]
SET [TenCTy] = @TenCTy,
	[DiaChi] = @DiaChi,
	[SoDT] = @SoDT,
	[SoFax] = @SoFax,
	[MaSoThue] = @MaSoThue,
	[Email] = @Email,
	[Website] = @Website,
	[NguoiLienHe] = @NguoiLienHe,
	[Logo] = @Logo,
	[GhiChu] = @GhiChu
WHERE	[MaCTy] = @MaCTy
GO

--GRANT EXECUTE ON [dbo].[spCongTyUpdate] TO [sa]
--GO
